<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: yangweijie <yangweijiester@gmail.com> <code-tech.diandian.com>
// +----------------------------------------------------------------------

namespace Help\Model;
use Think\Model;

/**
 * Class HelpTypeModel  帮忙类型
 * @package Help\Model
 * @author:xjw129xjt xjt@ourstu.com
 */
class HelpTypeModel extends Model {

    protected $tableName='help_type';

    protected $_auto = array(
        array('create_time', NOW_TIME, self::MODEL_INSERT),
        array('status', '1', self::MODEL_INSERT),
    );

public function getAllType($field=''){
    $type = $this->field($field)->order('id asc')->select();
    return $type;
}

}